package com.hue.gulimail.gulimailorder.feign;

import com.hue.common.utils.R;
import com.hue.gulimail.gulimailorder.vo.WareSkuLockVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

/**
 * @Author: 姚凤桥
 * @Date: 2021/12/26 16:44
 * @Description:
 */
@FeignClient("gulimail-ware")
public interface WareFeignService {
    @PostMapping("/gulimailware/waresku/hasStock")
    R hasStock(@RequestBody List<Long> skuIds);

    @PostMapping("/gulimailware/waresku/lock/order")
    R lockOrder(@RequestBody WareSkuLockVo wareSkuLockVo);
}
